#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve()
{
    int a,b;
    cin>>a>>b;
    if(b==1)
    {
        if(a>=1600&&a<=2999)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
    else 
    {
        if(a>=1200&&a<=2399)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
}
signed main()
{
    //ios::sync_with_stdio(false);
    //cin.tie(nullptr);
    int T=1;
    //cin>>T;
    while(T--)
    {
       solve();
    }
    return 0;
}